package com.yohann.eduorder.client;

import com.yohann.commonutils.vo.CourseOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("edu-service")
public interface EduClient {
    /**
     * 订单中课程详情
     * @param id
     * @return
     */
    @GetMapping("/edu-service/courseFront/getCourseOrderInfo/{id}")
    CourseOrderVo getCourseOrderInfo(@PathVariable("id") String id);
}
